/**
 * 
 */
package pojo;

/**
 * 用户
 * 
 * @author 81504
 * 
 */
public class User {
	/**
	 * 主键id
	 */
	private Integer id;
	/**
	 * 登陆名
	 */
	private String loginName;
	/**
	 * 用户名
	 */
	private String userName;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 上传文件头像
	 */
	private String titleImg;
	/**
	 * 身份证号
	 */
	private String identityCode;
	/**
	 * 邮箱
	 */
	private String email;
	/**
	 * 手机
	 */
	private String mobile;
	/**
	 * 类型（1：后台 0:前台）
	 */
	private Integer type;

	// ====================构造=====================
	public User() {
	}

	public User(Integer id, String loginName, String userName, String password,
			String titleImg, String identityCode, String email, String mobile, Integer type) {
		super();
		this.id = id;
		this.loginName = loginName;
		this.userName = userName;
		this.password = password;
		this.titleImg = titleImg;
		this.identityCode = identityCode;
		this.email = email;
		this.mobile = mobile;
		this.type = type;
	}

	// =====================封装======================
	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the loginName
	 */
	public String getLoginName() {
		return loginName;
	}

	/**
	 * @param loginName
	 *            the loginName to set
	 */
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	/**
	 * @return the userName
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * @param userName
	 *            the userName to set
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password
	 *            the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the TitleImg
	 */
	public String getTitleImg() {
		return titleImg;
	}

	/**
	 * @param TitleImg
	 *            the TitleImg to set
	 */
	public void setTitleImg(String titleImg) {
		this.titleImg = titleImg;
	}

	/**
	 * @return the identityCode
	 */
	public String getIdentityCode() {
		return identityCode;
	}

	/**
	 * @param identityCode
	 *            the identityCode to set
	 */
	public void setIdentityCode(String identityCode) {
		this.identityCode = identityCode;
	}

	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param email
	 *            the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * @return the mobile
	 */
	public String getMobile() {
		return mobile;
	}

	/**
	 * @param mobile
	 *            the mobile to set
	 */
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	/**
	 * @return the type
	 */
	public Integer getType() {
		return type;
	}

	/**
	 * @param type
	 *            the type to set
	 */
	public void setType(int type) {
		this.type = type;
	}

}
